package top.sqdpt.auth.service.impl;

import cn.dev33.satoken.stp.SaTokenInfo;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.stereotype.Service;
import top.sqdpt.auth.service.AuthService;

@Service
public class AuthServiceImpl implements AuthService {
    @Override
    public String login(String username, String password) {
        Integer userId = 1;
        StpUtil.login(userId);
        SaTokenInfo tokenInfo = StpUtil.getTokenInfo();
        return tokenInfo.getTokenValue();
    }

    @Override
    public Boolean register(String wxMpOpenId) {
        return null;
    }

    @Override
    public Boolean register(String username, String password) {
        return null;
    }
}
